
import java.awt.Button;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;

class frameTest{
    public static void main(String[] args){
      JFrame frame = new JFrame("Welcome!");
      frame.setSize(400,400);
      frame.setLocation(100,100);
      Button button1 = new Button("Yes");
      Button button2 = new Button("No");
      frame.add(button1,"East");
      frame.add(button2,"West");
      frame.setVisible(true);
    };
};
